package malus.shaofeng.com.beiwomusic.model;

import org.json.JSONObject;

/**
 * 话题对评论的回复
 */
public class RefReply {
    private int reply_id;
    private String content;
    private User user;
    public void parseJSON(JSONObject object){
        reply_id=object.optInt("reply_id");
        content=object.optString("content");
        user=new User();
        if(!object.isNull("user")){
            JSONObject json = object.optJSONObject("user");
            user.parseJSON(json);
        }
    }
    public int getReply_id() {
        return reply_id;
    }

    public void setReply_id(int reply_id) {
        this.reply_id = reply_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
